package logic;

public class Coords2D {

	protected float x,y;
	public Coords2D(float x,float y)
	{
		this.x=x;
		this.y=y;
	}
	
	public Coords2D(Coords2D coord)
	{
		this.x = coord.getX();
		this.y = coord.getY();
	}
	
	public float getX() {
		return x;
	}
	public void setX(float x) {
		this.x = x;
	}
	public float getY() {
		return y;
	}
	public void setY(float y) {
		this.y = y;
	}
	
	@Override
	public String toString()
	{
		return (int)x+"x"+(int)y;
	}
}
